package com.redsoft.spirit.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * The persistent class for the sys_role database table.
 */
@Entity
@Table(name = "sys_role")
@NamedQuery(name = "Role.findAll", query = "SELECT r FROM Role r")
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	private String id;

	@Column(name = "DISPLAY_ORDER")
	private int displayOrder;

	@Column(name = "ext_a")
	private String extA;

	@Column(name = "ext_b")
	private String extB;

	@Column(name = "ext_c")
	private String extC;

	@Column(name = "INNER_NAME")
	private String innerName;

	@Column(name = "is_active")
	private int isActive;

	private String properties;

	@Column(name = "creator_id")
	private String creatorId;

	@Column(name = "dept_id")
	private String deptId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private Date createTime;

	@Column(name = "ROLE_NAME")
	private String roleName;

	@Transient
	private String userName;

	public Role() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getDisplayOrder() {
		return this.displayOrder;
	}

	public void setDisplayOrder(int displayOrder) {
		this.displayOrder = displayOrder;
	}

	public String getExtA() {
		return this.extA;
	}

	public void setExtA(String extA) {
		this.extA = extA;
	}

	public String getExtB() {
		return this.extB;
	}

	public void setExtB(String extB) {
		this.extB = extB;
	}

	public String getExtC() {
		return this.extC;
	}

	public void setExtC(String extC) {
		this.extC = extC;
	}

	public String getInnerName() {
		return this.innerName;
	}

	public void setInnerName(String innerName) {
		this.innerName = innerName;
	}

	public int getIsActive() {
		return this.isActive;
	}

	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}

	public String getProperties() {
		return this.properties;
	}

	public void setProperties(String properties) {
		this.properties = properties;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}